﻿<!DOCTYPE html >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script src="jsPDF-master/jspdf.js" type="text/javascript"></script>
    <script src="jsPDF-master/jspdf.plugin.from_html.js" type="text/javascript"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
    <script src="jsPDF-master/libs/Blob.js/BlobBuilder.js" type="text/javascript"></script>
    <script src="jsPDF-master/libs/FileSaver.js/FileSaver.js" type="text/javascript"></script>
    <script type="text/javascript">
        var doc = new jsPDF();
        var source = $("#contenedor")[0];
        var specialElementHandlers = null;
        doc.fromHTML(source, 0.5, 0.5, {width:7.5, 'elementHandlers' : null});
        //doc.text(20, 20, 'Hello world.');
        doc.save('Test.pdf');        
    </script>
    <title></title>
</head>
<body>
<div id="contenedor"><p>Contenido html</p></div>
</body>
</html>
